package experience2;

public class PC {
	CPU cpu;
	HardDisk HD;
	public void setCPU(CPU c) {
		this.cpu = c;
		}
	public void setHardDisk(HardDisk h) {
		this.HD = h;
	}
	public void show() {
		System.out.println("cpu的速度"+cpu.getSpeed());
		System.out.println("硬盘容量"+HD.getAmount());
	}

}
